const express = require('express');
const router = express.Router();
const db = require('../db/index.js');

// 导入学生函数处理模块
const student_handler = require('../router_handler/student.js');

// 获取学生列表
router.get('/getList', student_handler.getStudentList);

// 添加学生
router.post('/addStudent', student_handler.addStudent);

// 删除学生
router.post('/deleteStudent', student_handler.deleteStudent);

// 根据名字模糊查询学生
router.get('/getStudentByName', student_handler.getStudentByName);

module.exports = router;